<admintpl file="header"/>
<head/>
<body>
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li <eq name="state_id" value="">class="active"</eq>><a href="{:U('Friend/index')}">全部</a></li>
     <li <eq name="state_id" value="0">class="active"</eq>><a href="{:U('Friend/index',array('state_id'=>0))}">审核中</a></li>
     <li <eq name="state_id" value="2">class="active"</eq>><a href="{:U('Friend/index',array('state_id'=>2))}">审核通过</a></li>
     <li <eq name="state_id" value="1">class="active"</eq>><a href="{:U('Friend/index',array('state_id'=>1))}">未通过</a></li>
  	 <li><a href="{:U('Forepart/Friendindex')}">推送账号</a></li>
  </ul>
    <div class="row">
        <div class="span12">
          
        </div>
    </div>

  <div class="table_list">
<style type="text/css">
	td>img{ width:40px; height:40px; cursor:pointer;}
	
	
</style>

    <table width="100%" cellspacing="0" class="table table-hover">
      <thead>
        <tr>
          <th width="20">ID</th>
		  <th >用户</th>
          <th align="left" >微信号名称</th>
          <th align="left">微信号 </th>
          <th align="left" >性别</th>
          <th align="left" >地区</th>
          <th align="left" >头像</th>
          <th align="left" >好友数</th>
          <th align="left" >好友数截图</th>
          
          <th align="left" >价格（积分）</th>
          <th align="left">年龄</th>
		  <th>状态</th>
         
          <th align="left" >管理</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="content" item="vo">
        <tr>
          <td>{$vo.wid}</td>
          <td>{$vo.user_login}</td>
       
          <td>{$vo.nickname}</td>
         
          <td>{$vo.hao}</td>
          <td><if condition="$vo['psex'] eq 1"> 男 <elseif condition="$vo['psex'] eq 2" />女 <else />未知  </if> </td>
          <td>{$vo.province}-{$vo.city}</td>
          <td>
          		<if condition="$vo['headimgurl'] eq '' ">
          			没有获取到头像	
				<else />
					<img  src="{$vo.headimgurl}" title="头像图片 点击放大" />
          		</if>
			
          </td>
          <td>{$vo.friendnum}</td>
          
		     <td>
          		<if condition="$vo['friendnumimg'] eq '' ">
          			未上传好友截图
				<else />
					<img    src="{$vo.friendnumimg}" title="好友截图点击放大" />
          		</if>
			
        	  </td>
		  <td>{$vo.price} </td>
		  <td>{$vo.eag}</td>
          <td><if condition="$vo.status eq 2">审核成功<elseif condition="$vo.status eq 1" />审核失败<else/>审核中</if></td>

          <td >
          <if condition="$vo.status neq 0">
          		<a href="{:U('Friend/shenhe',array('id'=>$vo['wid']))}" class="J_dialog" title="查看{$vo.nickname}"  >查看</a>
          <else />
          		<a href="{:U('Friend/shenhe',array('id'=>$vo['wid']))}" class="J_dialog" title="审核{$vo.nickname}" >审核</a>
          </if>
          </td>
        </tr>
        </foreach>
      </tbody>
    </table>
      <div class="pagination">{$page}</div>
  </div>
  
  

<div class="modal fade bs-example-modal-lg" id="exampleModal"   tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
		 <button data-dismiss="modal" class="close" type="button">&times;</button>
			
	
    <div class="modal-content" style="text-align:center;">
      <img src="" style=" margin:15px auto;">
    </div>
  </div>
</div>
  
</div>
<script src="__ROOT__/statics/js/common.js"></script>
<script type="text/javascript">
	
$("td>img").click(function(){

var src=$(this).attr("src");
	$('#exampleModal').find("img").attr("src",src);
	$('#exampleModal').modal('toggle')
});
	
</script>

</body>
</html>